@import url('./variable.less');
.safe-edu-layout {
  .ant-layout-header {
    // ant 样式
    flex: 0 0 48px !important;
    height: 48px;
    // TODO: boss和企业协会要求 主题色不一样
    // background-color: @primaryColor;
    // line-height: 48px;
    color: white;
    padding-inline: 32px !important;
  }

  // aside
  .ant-layout-sider {
    border-right: 1px solid rgba(5, 5, 5, 0.06);
    .ant-menu-light.ant-menu-root.ant-menu-inline {
      border-right: none;
    }
    &.ant-layout-sider-light {
      background-color: #fffbf9;
    }

    // slide 收起/展开按钮
    .collapse-trigger-container {
      position: absolute;
      width: 8px;
      background-color: transparent;
      height: 100%;
      right: -4px;
      top: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1;

      &:hover {
        .collapse-trigger {
          opacity: 1;
          transition: all 0.2s;
        }
      }

      .collapse-trigger {
        opacity: 0;
        cursor: pointer;
        transition: all 0.2s;
        width: 10px;
        height: 60px;
        background: #bfc5cc;
        border-radius: 5px;
        border: 1px solid #afb5bd;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }

    // 菜单
    .ant-menu_content {
      height: 100%;
      overflow-y: auto;
    }
  }

  //content
  .ant-layout-content {
    display: flex;
    flex-direction: column;

    .safe-edu-page_tabs {
      .ant-tabs-nav {
        margin: 0;
        background-color: #ffffff;

        &::before {
          border-bottom-color: white;
        }

        .ant-tabs-tab {
          border-radius: 0px !important;
          border: none;
          border-right: 1px solid #f0f0f0;
        }
      }
    }
  }

  .safe-edu-page_container {
    flex: auto;
    padding: 10px;
    overflow: hidden;
    background-color: #f2f2f5;
    border-radius: 4px;
    box-sizing: border-box;
    .ym-add-page-container {
      padding: 0;
    }
    .isInIframe {
      padding: unset !important;
    }
    .ym_detail_container {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      height: 100%;
      background: #eff2f5;
      box-sizing: border-box;
      padding: 16px 16px 0 16px;
      min-width: 932px;
      // 头
      .ym_header_box {
        width: 100%;
        font-size: 16px;
        color: #333;
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: space-between;
        padding: 11px 20px;
        background: white;
        .header_box_left {
          .left_back {
            display: flex;
            flex-flow: row nowrap;
            align-items: center;
            cursor: pointer;
            .back_title {
              margin-left: 8px;
            }
          }
        }
        .header_box_center {
          font-size: 16px;
          font-weight: 600;
          color: #333333;
        }
        .header_box_right {
        }
      }
      // content
      .ym_detail_grid {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        overflow: hidden;
        // background-color: white;
        overflow-y: auto;
        // #fff7e5;
        max-width: 1170px;
        width: 100%; //内容太少，宽度无法撑开时
        .ant-form-item {
          .ant-form-item-label {
            width: 120px;
          }
        }
        .ym_collapse {
          .ant-collapse-item {
            background-color: white;
            border-bottom: none !important;
            margin-bottom: 12px;
            .panel_item_delete_icon {
              &:hover {
                color: @primaryColor;
              }
            }
          }
        }

        .grid_item {
          background: white;
          padding: 12px 16px;
          margin-bottom: 12px;
        }
      }
      //footer
      .yn_detail_operation_footer {
        width: 100%;
        height: 60px;
        background: #ffffff;
        box-shadow: 0px 0px 6px 4px rgba(219, 219, 219, 0.5);
        background-color: #fff;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: center;
        // margin-top: 16px;
      }
    }
  }
}

// table 操作按钮颜色
.safe-edu_table_operation_text {
  color: #1890ff;
  cursor: pointer;
  font-size: 14px;
}
.ant-btn-text:disabled {
  .safe-edu_table_operation_text {
    color: rgba(0, 0, 0, 0.25);
  }
}

// table toolbar
.safe-edu_table_toolbar_prefix_box {
  display: inline-flex;
  column-gap: 8px;
}

// 图片上传提示语
.safe-edu_upload_warning {
  color: #666;
  font-size: 12px;
  line-height: 200%;
}

// Desc 样式
.ym_descriptions {
  padding: 12px !important;
  background: white;
  border-radius: 4px;
  margin-bottom: 12px;
}

// 课件详情抽屉
.courseware_drawer_content {
  &.content_test_paper_cannot_see {
    //试卷详情
    height: 100%;
    overflow: hidden;
    position: relative;
    .cannot_see_mask {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 1;
      display: flex;
      flex-direction: column;
      .mask_top {
        flex: 0 0 25.5%;
        background: linear-gradient(180deg, rgba(249, 249, 249, 0.6) 0%, #f9f9f9 100%);
      }
      .mask_content {
        flex: auto;
        background: rgba(249, 249, 249);
        display: flex;
        flex-direction: column;
        align-items: center;
        .mask-text {
          font-size: 16px;
          font-weight: 500;
          color: #333333;
          line-height: 22px;
          margin: 32px 0px;
          > span {
            color: #ff6d3b;
          }
        }
      }
    }
  }
}
.maxPanel {
  height: 100%;
  overflow: auto;
  // .ym-add-page-container {
  //   min-width: 1134px;
  // }
  .ym-add-page-container-grid {
    max-width: 100% !important;
  }
}
.ym-descr-center {
  .ant-descriptions-item-label {
    text-align: center;
  }
}
.ym-descr-less {
  max-width: 100%;
  .ant-descriptions-view {
    overflow: auto;
  }
  // overflow: auto;
  .ant-descriptions-item-content {
    padding: 0 !important;
  }

  .ant-descriptions-item-label {
    min-width: 80px;
    max-width: 140px;
    text-align: center;
  }
  .ym-desc-label-120 {
    min-width: 90px;
    max-width: 120px;
    width: 120px;
  }
  .ym-desc-item {
    min-width: 80px;
    flex: 1;
    color: rgba(0, 0, 0, 0.88);
    font-size: 14px;
    line-height: 1.5714285714285714;
    .ym-desc-itemson {
      padding: 8px 16px;
      text-align: center;
      word-break: break-word;
      overflow-wrap: break-word;
    }
    .ym-desc-item-s {
      border-bottom: 1px solid rgba(5, 5, 5, 0.06);
    }
  }
  .max-item {
    min-width: 110px;
  }
  .lingt_text {
    color: #1890ff;
  }
}
.drawer-tab {
  height: 100%;
  margin-top: -16px;
  .ant-tabs-tab-btn {
    font-size: 16px;
    font-weight: 600;
  }
}
.detail-drawer {
  .ym-drawer-body {
    .ym-table-resize-parent {
      margin: -16px;
      .ant-pagination {
        margin-bottom: 4px !important;
      }
    }
  }
}
